<?php
   class CustomersController extends AppController
   {
       var $name = 'Customers';
       var $helpers = array('Form', 'Html', 'Javascript', 'Time');
       function index()
       {
            $this->set('customers', $this->Customer->find('all'));
       }
       
       function add(){
       		// set data for view.
       	if (!empty($this->data))
           {
               if ($this->Customer->save($this->data))
               {
                   $this->flash('Your customer has been saved.','/customers');
                   $this->redirect('index');
               }
           }
       }
       
       function edit($id=0)
       {
       		
       }
   }
   ?>